package com.feeyo.groundservice.recordnfc.constant

import com.feeyo.groundservice.composewidget.view.tab.TabRowItem
import com.feeyo.groundservice.recordnfc.model.GateItemBO
import com.feeyo.groundservice.recordnfc.model.ParkingItemBO
import com.feeyo.groundservice.recordnfc.model.TaskItemBO

/**
 *作者：70893 on 2025-10-08
 *描述：
 */


internal fun String.getNfcId(airport: String): String = when (airport.uppercase()) {
    "SHE" -> "88" + this.substring(0, 6)
    else -> this
}

internal fun getTabMenus() = RecorderType.entries.map {
    TabRowItem(title = it.title)
}

internal fun List<TaskItemBO>.resumeTaskCheck() = forEach {
    it.task_config.checked.value = false
}

internal fun List<ParkingItemBO>.resumeParkingCheck() = forEach {
    it.checked.value = false
}

internal fun List<GateItemBO>.resumeGateCheck() = forEach {
    it.checked.value = false
}